<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Dessert House - 错误</title>
<link href="/ChristineCake/css/ErrorPage.css" rel="stylesheet"
	type="text/css" />
</head>

<body>

	<div id="header">
		<div id="logo">
			<img src="/ChristineCake/image/logo.png" alt="logo" width="100%"
				height="100%" />
		</div>
		<%
			out.println("<div id=\"back\" align=\"right\">");
			String error = request.getParameter("error");
			if (error.equals("LogInFailure")) {
				out.println("<a href=\"/ChristineCake/jsp/LogIn.jsp\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "用户名或密码错误！请重试！" + "</p>");
			} else if (error.equals("OutOfDate")) {
				out.println("<a href=\"/ChristineCake/jsp/LogIn.jsp\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "您的会员卡由于太久未充值已被停用！" + "</p>");
			} else if (error.equals("UnmatchPassword")) {
				out.println("<a href=\"/ChristineCake/jsp/SignUp.jsp\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "两次输入的密码不一致！请重试！" + "</p>");
			} else if (error.equals("AgeError")) {
				out.println("<a href=\"/ChristineCake/jsp/SignUp.jsp\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "年龄只能为正整数！请重试！" + "</p>");
			} else if (error.equals("DatabaseError")) {
				out.println("<a href=\"/ChristineCake/jsp/SignUp.jsp\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "无法连接到数据库！请稍后重试！" + "</p>");
			} else if (error.equals("MbrUnmatchPassword")) {
				out.println("<a href=\"/ChristineCake/jsp/AddMember.jsp\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "两次输入的密码不一致！请重试！" + "</p>");
			} else if (error.equals("MbrAgeError")) {
				out.println("<a href=\"/ChristineCake/jsp/AddMember.jsp\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "年龄只能为正整数！请重试！" + "</p>");
			} else if (error.equals("MbrDatabaseError")) {
				out.println("<a href=\"/ChristineCake/jsp/AddMember.jsp\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "无法连接到数据库！请稍后重试！" + "</p>");
			} else if (error.equals("MgrUnmatchPassword")) {
				out.println("<a href=\"/ChristineCake/jsp/AddManager.jsp\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "两次输入的密码不一致！请重试！" + "</p>");
			} else if (error.equals("MgrAgeError")) {
				out.println("<a href=\"/ChristineCake/jsp/AddManager.jsp\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "年龄只能为正整数！请重试！" + "</p>");
			} else if (error.equals("MgrDatabaseError")) {
				out.println("<a href=\"/ChristineCake/jsp/AddManager.jsp\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "无法连接到数据库！请稍后重试！" + "</p>");
			} else if (error.equals("SlrUnmatchPassword")) {
				out.println("<a href=\"/ChristineCake/jsp/AddSaler.jsp\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "两次输入的密码不一致！请重试！" + "</p>");
			} else if (error.equals("SlrAgeError")) {
				out.println("<a href=\"/ChristineCake/jsp/AddSaler.jsp\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "年龄只能为正整数！请重试！" + "</p>");
			} else if (error.equals("SlrDatabaseError")) {
				out.println("<a href=\"/ChristineCake/jsp/AddSaler.jsp\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "无法连接到数据库！请稍后重试！" + "</p>");
			} else if (error.equals("MdfMbrUnmatchPassword")) {
				out.println("<a href=\"/ChristineCake/MemberManagementServlet\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "两次输入的密码不一致！请重试！" + "</p>");
			} else if (error.equals("MdfMbrAgeError")) {
				out.println("<a href=\"/ChristineCake/MemberManagementServlet\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "年龄只能为正整数！请重试！" + "</p>");
			} else if (error.equals("MdfMbrDatabaseError")) {
				out.println("<a href=\"/ChristineCake/MemberManagementServlet\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "无法连接到数据库！请稍后重试！" + "</p>");
			} else if (error.equals("MdfMgrUnmatchPassword")) {
				out.println("<a href=\"/ChristineCake/ManagerManagementServlet\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "两次输入的密码不一致！请重试！" + "</p>");
			} else if (error.equals("MdfMgrAgeError")) {
				out.println("<a href=\"/ChristineCake/ManagerManagementServlet\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "年龄只能为正整数！请重试！" + "</p>");
			} else if (error.equals("MdfMgrDatabaseError")) {
				out.println("<a href=\"/ChristineCake/ManagerManagementServlet\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "无法连接到数据库！请稍后重试！" + "</p>");
			} else if (error.equals("MdfSlrUnmatchPassword")) {
				out.println("<a href=\"/ChristineCake/SalerManagementServlet\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "两次输入的密码不一致！请重试！" + "</p>");
			} else if (error.equals("MdfSlrAgeError")) {
				out.println("<a href=\"/ChristineCake/SalerManagementServlet\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "年龄只能为正整数！请重试！" + "</p>");
			} else if (error.equals("MdfSlrDatabaseError")) {
				out.println("<a href=\"/ChristineCake/SalerManagementServlet\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "无法连接到数据库！请稍后重试！" + "</p>");
			} else if (error.equals("ConsumptionError")) {
				out.println("<a href=\"/ChristineCake/jsp/AddDiscount.jsp\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "累计消费额只能为正数！请重试！" + "</p>");
			} else if (error.equals("DiscountError")) {
				out.println("<a href=\"/ChristineCake/jsp/AddDiscount.jsp\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "折扣只能为0到1之间的小数！请重试！" + "</p>");
			} else if (error.equals("DctDatabaseError")) {
				out.println("<a href=\"/ChristineCake/jsp/AddDiscount.jsp\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "无法连接到数据库！请稍后重试！" + "</p>");
			} else if (error.equals("ShopDatabaseError")) {
				out.println("<a href=\"/ChristineCake/jsp/AddShop.jsp\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "无法连接到数据库！请稍后重试！" + "</p>");
			} else if (error.equals("MdfConsumptionError")) {
				out.println("<a href=\"/ChristineCake/MemberDiscountManagementServlet\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "累计消费额只能为正数！请重试！" + "</p>");
			} else if (error.equals("MdfDiscountError")) {
				out.println("<a href=\"/ChristineCake/MemberDiscountManagementServlet\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "折扣只能为0到1之间的小数！请重试！" + "</p>");
			} else if (error.equals("MdfDctDatabaseError")) {
				out.println("<a href=\"/ChristineCake/MemberDiscountManagementServlet\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "无法连接到数据库！请稍后重试！" + "</p>");
			} else if (error.equals("MdfShopDatabaseError")) {
				out.println("<a href=\"/ChristineCake/ShopManagementServlet\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "无法连接到数据库！请稍后重试！" + "</p>");
			} else if (error.equals("MdfMbrMsgAgeError")) {
				out.println("<a href=\"/ChristineCake/ModifyMemberMessageServlet?name=" + request.getParameter("name") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "年龄只能为正整数！请重试！" + "</p>");
			} else if (error.equals("MdfMbrMsgUnmatchPassword")) {
				out.println("<a href=\"/ChristineCake/ModifyMemberMessageServlet?name=" + request.getParameter("name") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "两次输入的密码不一致！请重试！" + "</p>");
			} else if (error.equals("MdfMbrMsgDatabaseError")) {
				out.println("<a href=\"/ChristineCake/ModifyMemberMessageServlet?name=" + request.getParameter("name") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "无法连接到数据库！请稍后重试！" + "</p>");
			} else if (error.equals("MoneyError")) {
				out.println("<a href=\"/ChristineCake/RechargeServlet?name=" + request.getParameter("name") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "充值金额只能为正数！请重试！" + "</p>");
			} else if (error.equals("RechargeError")) {
				out.println("<a href=\"/ChristineCake/RechargeServlet?name=" + request.getParameter("name") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "至少充值100元才能激活会员卡！请重试！" + "</p>");
			} else if (error.equals("RechargeDatabaseError")) {
				out.println("<a href=\"/ChristineCake/RechargeServlet?name=" + request.getParameter("name") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "无法连接到数据库！请稍后重试！" + "</p>");
			} else if (error.equals("LogOffError")) {
				out.println("<a href=\"/ChristineCake/LogOffServlet?name=" + request.getParameter("name") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "无法连接到数据库！请稍后重试！" + "</p>");
			} else if (error.equals("MdfOrderQuantityError")) {
				out.println("<a href=\"/ChristineCake/ModifyOrderServlet?name=" + request.getParameter("name") + "&id=" + request.getParameter("id") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "预订数目只能为正整数！请重试！" + "</p>");
			} else if (error.equals("MdfOrderTooMuchError")) {
				out.println("<a href=\"/ChristineCake/ModifyOrderServlet?name=" + request.getParameter("name") + "&id=" + request.getParameter("id") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "预订数目超过限额！请重试！" + "</p>");
			} else if (error.equals("MdfOrderDatabaseError")) {
				out.println("<a href=\"/ChristineCake/ModifyOrderServlet?name=" + request.getParameter("name") + "&id=" + request.getParameter("id") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "无法连接到数据库！请稍后重试！" + "</p>");
			} else if (error.equals("OrderQuantityError")) {
				out.println("<a href=\"/ChristineCake/OrderMessageServlet?name=" + request.getParameter("name") + "&id=" + request.getParameter("id") + "&date=" + request.getParameter("date") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "预订数目只能为正整数！请重试！" + "</p>");
			} else if (error.equals("OrderTooMuchError")) {
				out.println("<a href=\"/ChristineCake/OrderMessageServlet?name=" + request.getParameter("name") + "&id=" + request.getParameter("id") + "&date=" + request.getParameter("date") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "预订数目超过限额！请重试！" + "</p>");
			} else if (error.equals("OrderBalanceError")) {
				out.println("<a href=\"/ChristineCake/OrderMessageServlet?name=" + request.getParameter("name") + "&id=" + request.getParameter("id") + "&date=" + request.getParameter("date") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "余额不足！请充值后重试！" + "</p>");
			} else if (error.equals("OrderDatabaseError")) {
				out.println("<a href=\"/ChristineCake/OrderMessageServlet?name=" + request.getParameter("name") + "&id=" + request.getParameter("id") + "&date=" + request.getParameter("date") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "无法连接到数据库！请稍后重试！" + "</p>");
			} else if (error.equals("PayDatabaseError")) {
				out.println("<a href=\"/ChristineCake/OrderListServlet?name=" + request.getParameter("name") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "无法连接到数据库！请稍后重试！" + "</p>");
			} else if (error.equals("SaleQuantityError")) {
				out.println("<a href=\"/ChristineCake/SaleMessageServlet?name=" + request.getParameter("name") + "&id=" + request.getParameter("id") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "销售数目只能为正整数！请重试！" + "</p>");
			} else if (error.equals("SaleTooMuchError")) {
				out.println("<a href=\"/ChristineCake/SaleMessageServlet?name=" + request.getParameter("name") + "&id=" + request.getParameter("id") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "销售数目超过限额！请重试！" + "</p>");
			} else if (error.equals("SaleDatabaseError")) {
				out.println("<a href=\"/ChristineCake/SaleMessageServlet?name=" + request.getParameter("name") + "&id=" + request.getParameter("id") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "无法连接到数据库！请稍后重试！" + "</p>");
			} else if (error.equals("MdfGoodsPriceError")) {
				out.println("<a href=\"/ChristineCake/GoodsManagementServlet?name=" + request.getParameter("name") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "价格只能为正数！请重试！" + "</p>");
			} else if (error.equals("MdfGoodsQuantityError")) {
				out.println("<a href=\"/ChristineCake/GoodsManagementServlet?name=" + request.getParameter("name") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "数量只能为正整数！请重试！" + "</p>");
			} else if (error.equals("MdfGoodsDatabaseError")) {
				out.println("<a href=\"/ChristineCake/GoodsManagementServlet?name=" + request.getParameter("name") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "无法连接到数据库！请稍后重试！" + "</p>");
			} else if (error.equals("AddGoodsIdError")) {
				out.println("<a href=\"/ChristineCake/jsp/AddGoods.jsp?name=" + request.getParameter("name") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "产品编号只能为整数！请重试！" + "</p>");
			} else if (error.equals("AddGoodsPriceError")) {
				out.println("<a href=\"/ChristineCake/jsp/AddGoods.jsp?name=" + request.getParameter("name") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "价格只能为正数！请重试！" + "</p>");
			} else if (error.equals("AddGoodsQuantityError")) {
				out.println("<a href=\"/ChristineCake/jsp/AddGoods.jsp?name=" + request.getParameter("name") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "数量只能为正整数！请重试！" + "</p>");
			} else if (error.equals("AddGoodsDatabaseError")) {
				out.println("<a href=\"/ChristineCake/jsp/AddGoods.jsp?name=" + request.getParameter("name") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "无法连接到数据库！请稍后重试！" + "</p>");
			} else if (error.equals("MdfOrderDatabaseError")) {
				out.println("<a href=\"/ChristineCake/OrderListServlet?name=" + request.getParameter("name") + "\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "无法连接到数据库！请稍后重试！" + "</p>");
			} else {
				out.println("<a href=\"/ChristineCake/jsp/HomePage.jsp\">返回</a>");
				out.println("</div></div><hr /><div id=\"content\"><h2>错误</h2>");
				out.println("<p>" + "未知的错误！请稍后重试！" + "</p>");
			}
		%>
	</div>

	<hr />

	<div id="footer">
		<p>©南京大学软件学院 李冰洁</p>
	</div>

</body>

</html>